package com.googlecode.gwtbb.server.intermediate.search;

import com.googlecode.gwtbb.client.shared.entity.properties.GetId;
import org.apache.lucene.index.Term;

/**
 * @author Abraham Grief
 * @version $Id$
 * @since Jul 29, 2008
 */
public abstract class GetIdIndexer<I extends GetId> extends DirectoryIndexer<I> {
	protected Term createIdTerm(I identifiable) {
		return new Term(GetId.ID, identifiable.getId().toString());
	}
}
